<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main2"/>
    <title>联系人: ${this.contact?.fullName}</title>
</head>

<body>
<div class="main-body">
    <div class="page-wrapper">
        <!-- Page-header start -->
        <div class="page-header">
            <div class="page-header-title">
                <h4>联系人信息</h4>
            </div>

            <div class="page-header-breadcrumb">
                <ul class="breadcrumb-title">
                    <li class="breadcrumb-item">
                        <a href="/salesDashboard/index">
                            <i class="icofont icofont-home"></i>
                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <g:link controller="contact" action="index">联系人列表</g:link>
                    </li>
                    <li class="breadcrumb-item">联系人信息</li>
                </ul>
            </div>
        </div>
        <!-- Page-header end -->
        <!-- Page-body start -->
        <div class="page-body">
            <g:if test="${flash.message}">
                <div class="message alert alert-info" role="status">${flash.message}
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">×</span></button>
                </div>
            </g:if>

        <!-- Hover table card start -->
            <div class="card">
                <div class="card-header">
                    <h5>联系人信息</h5>

                    <div class="card-header-right">
                        <g:link action="edit" resource="${this.contact}" data-toggle="tooltip" data-placement="top"
                                title="" data-original-title="编辑">
                            <i class="icofont icofont-edit"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>

                <div class="card-block">

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">姓名</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.fullName}</span>
                        </div>
                        <label class="col-md-2 col-form-label">所有者</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.user?.fullName}</span>
                        </div>

                    </div>
                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">称谓</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.salutation?.name}</span>

                        </div>
                        <label class="col-md-2 col-form-label">头衔</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.title}</span>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">手机</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.cellphone}</span>
                        </div>
                        <label class="col-md-2 col-form-label">电话</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.phone}</span>
                        </div>

                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">邮箱</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.email}</span>
                        </div>
                        <label class="col-md-2 col-form-label">传真</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.fax}</span>

                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">微信</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.wechat}</span>

                        </div>
                        <label class="col-md-2 col-form-label">QQ</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.qq}</span>
                        </div>

                    </div>




                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">职务</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.job}</span>

                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">生日</label>

                        <div class="col-md-3">
                            <span class="cont"><g:formatDate format="yyyy-MM-dd"
                                                             date="${this.contact?.birthday}"/></span>
                        </div>
                        <label class="col-md-2 col-form-label">家乡</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.hometown}</span>
                        </div>

                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">性别</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.gender}</span>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">联系人来源</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.source}</span>
                        </div>
                    </div>


                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">爱好</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.hobby}</span>
                        </div>
                        <label class="col-md-2 col-form-label">禁忌</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.taboo}</span>
                        </div>

                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">国家</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.country?.name}</span>

                        </div>
                        <label class="col-md-2 col-form-label">城市</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.city?.name}</span>
                        </div>
                    </div>


                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">注册时间</label>

                        <div class="col-md-3">
                            <p class="form-control-static"><g:formatDate format="yyyy-MM-dd HH:mm:ss"
                                                                         date="${this.contact?.createdDate}"/></p>
                        </div>
                        <label class="col-md-2 col-form-label">修改时间</label>

                        <div class="col-md-3">
                            <p class="form-control-static"><g:formatDate format="yyyy-MM-dd HH:mm:ss"
                                                                         date="${this.contact?.modifiedDate}"/></p>
                        </div>

                    </div>

                    <div class="form-group row">
                        <label class="col-md-2 col-form-label">创建人</label>

                        <div class="col-md-3">
                            <p class="form-control-static">${this.contact?.createBy}</p>
                        </div>
                        <label class="col-md-2 col-form-label">修改人</label>

                        <div class="col-md-3">
                            <p class="form-control-static">${this.contact?.modifyBy}</p>
                        </div>

                    </div>

%{--                     <div class="form-group row">
                        <label class="col-md-2 col-form-label">最近登陆时间</label>

                        <div class="col-md-3">
                            <p class="form-control-static"><g:formatDate format="yyyy-MM-dd HH:mm:ss"
                                                                         date="${this.contact?.lastLoginTimestamp}"/></p>
                        </div>
                    </div>
 --}%

                    <div class="form-group row">

                        <label class="col-md-2 col-form-label">手机已验证</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.cellphoneHasVerified}</span>

                        </div>
                        <label class="col-md-2 col-form-label">激活</label>

                        <div class="col-md-3">
                            <span class="cont">${this.contact?.active}</span>
                        </div>
                    </div>

                </div>

            </div>

            <div class="card">
                <div class="card-header">
                    <h5>定制字段</h5>

                    <div class="card-header-right">
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/flexFieldInstanceTemplate"/>
            </div>

            <div class="card">
                <div class="card-header">
                    <h5>地址</h5>

                    <div class="card-header-right">
                        <g:link controller="address" action="create" params="[contact: this.contact?.id]"
                                data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                            <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/addressTemplate"/>
            </div>

            <div class="card">
                <div class="card-header">
                    <h5>笔记</h5>

                    <div class="card-header-right">
                        <g:link controller="note" action="create" params="[contact: this.contact?.id]"
                                data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                            <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/noteTemplate"/>
            </div>

            <div class="card">
                <div class="card-header">
                    <h5>拜访</h5>

                    <div class="card-header-right">
                        <g:link controller="activity" action="createAppointment" params="[contact: this.contact?.id]"
                                data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                            <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/appointmentTemplate"/>
            </div>

            <div class="card">
                <div class="card-header">
                    <h5>任务</h5>

                    <div class="card-header-right">
                        <g:link controller="activity" action="createTask" params="[contact: this.contact?.id]"
                                data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                            <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/taskTemplate"/>
            </div>


            <div class="card">
                <div class="card-header">
                    <h5>团队</h5>

                    <div class="card-header-right">
                        <g:link controller="contactTeam" action="create" params="[contact: this.contact?.id]"
                                data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                            <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/teamTemplate"/>
            </div>

            <div class="card">
                <div class="card-header">
                    <h5>附件</h5>

                    <div class="card-header-right">
                        <g:link controller="attachment" action="create" params="[contact: this.contact?.id]"
                                data-toggle="tooltip" data-placement="top" title="" data-original-title="新增">
                            <i class="icofont icofont-plus"></i>
                        </g:link>
                        <i class="icofont icofont-rounded-down"></i>
                    </div>
                </div>
                <g:render template="/layouts/mashTemplate/attachmentTemplate"/>
            </div>

        </div>

        <!-- Page-body end -->
    </div>
</div>

</body>
</html>
